package topday1_9.mxdx9;

/**
 * @Auther:小陈的Java
 */
public class InterfaceDemo4 {
    public static void main(String[] args) {
        C4 c = new C4();
        c.defaultMethod1();

    }
}
interface A4 {
    public default void defaultMethod1() {
        System.out.println("接口方法");
    }
}
class B4 {
    public  void defaultMethod1() {
        System.out.println("类方法");
    }
}
class C4 extends B4 implements A4 {

}
